#include <iostream>
using namespace std;
char b='0';
char *a=&b;
int input=1,now=0;
int main() {
	while(input != 0) {
		if(now + input < 0) {
			cout<<"INDEX CANNOT BE A NEGATIVE NUMBER"<<endl;
		} else {
			now += input;
			cout<<"INDEX:"<<now<<" TEXT:"<<a[now]<<endl;
		}
		cin>>input;
	}
	return 0;
}
